package com.kidult.android.example;

import com.example.dragableview.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);
	Button btn1 = (Button) findViewById(R.id.btn_drop_down_to_refresh_listview);
	btn1.setOnClickListener(new View.OnClickListener() {

	    @Override
	    public void onClick(View v) {
		startActivity(new Intent(MainActivity.this, DropDownToRefreshListViewActivity.class));
	    }
	});
	Button btn2 = (Button) findViewById(R.id.btn_pull_to_refresh_listview);
	btn2.setOnClickListener(new View.OnClickListener() {

	    @Override
	    public void onClick(View v) {
		startActivity(new Intent(MainActivity.this, PullToRefreshListViewActivity.class));
	    }
	});

	Button btn3 = (Button) findViewById(R.id.btn_pull_to_refresh_scrollview);
	btn3.setOnClickListener(new View.OnClickListener() {

	    @Override
	    public void onClick(View v) {
		startActivity(new Intent(MainActivity.this, PullToRefreshScrollViewActivity.class));
	    }
	});
    }
}
